﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SYSoft.Model.Models.DeviceManage.StockCheck
{

    /// <summary>
    /// 巡检任务表  
    /// </summary>
    [SqlSugar.SugarTable("dj_tasks")]
    public class Check_Task
    {
        /// <summary>
        /// ID  自增的主键一定要加IsIdentity特性 防止插入失败
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public int DeviceId { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }


        /// <summary>
        /// 点检设备部位    螺旋
        /// </summary>
        public string DevicePosition { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }



        /// <summary>
        /// 任务状态 0-未执行 1 已完成
        /// </summary>
        public int TaskStatus { get; set; }

        /// <summary>
        /// 任务结果  0 正常  1 异常
        /// </summary>
        public int TaskResult { get; set; }

        /// <summary>
        /// 异常处理状态 0 未处理   1 已处理
        /// </summary>
        public int ErrorStatus { get; set; }

        /// <summary>
        /// 任务图片
        /// </summary>
        public string TaskImage { get; set; }

        /// <summary>
        /// 任务内容
        /// </summary>
        public string TaskContent { get; set; }

        /// <summary>
        /// 人工上穿照片
        /// </summary>
        public string UploadImg { get; set; }


        /// <summary>
        /// 任务备注
        /// </summary>
        public string TaskBeizhu { get; set; }


        public string ErrorFinishResult { get; set; }

        /// <summary>
        /// 操作人员
        /// </summary>
        public string OperatorPeople { get; set; }


        /// <summary>
        /// 开始点检时间
        /// </summary>
        public DateTime StartCheckTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime { get; set; } = DateTime.Now;


        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;
    }
}
